#!/usr/bin/ruby

require 'kconv'

$KCODE = 'u'

$:.unshift(File.dirname(__FILE__) + './lib')

require 'lib/corno'
require 'style/default/cornostyle'

configfile = 'corno.conf'

def usage
end

begin
  opt = OptionParser.new
  opt.on("-c", "--configfile CONFIGFILE") {|v| configfile = v }
  opt.parse!
rescue Exception => e
  puts "version : #{Corno::VERSION}"
  usage
end

Corno.run(Corno::Config.load(configfile))

exit 0;

